package com.dragon.www.smarthome.model;

/**
 * @Class: ActionPacket
 * @Desp:  操作指令包。 构造函数内传入指令的操作类型和数据
 * @Author  songxy
 * @Date: 2016/3/3  14:24
 * @version 1.0.0
 */
public class ActionPacket extends DevicePacket {
    public ActionPacket() {}

    public ActionPacket(byte[] action, byte[] data) {
        this.setAction(action);
        this.setPacketData(data);
    }

    public ActionPacket(short length, byte[] action, byte[] data) {
        this.setAction(action);
        this.setPacketData(data);
        this.setPacketDataLength(length);
    }
}